package manager
{
	import data.app.events.MessageEvent;
	
	import flash.display.Sprite;

	/**
	 *提示语管理类
	 */	
	public class MessageManager extends Sprite
	{
		private static var _instance:MessageManager;
		
		/**
		 *提示语管理类 
		 */		
		public static function get Instance() : MessageManager
		{
			if(_instance == null)
			{
				_instance = new MessageManager();
			}
			return _instance;
		}
		
		public function register():void
		{
			setEvent();
		}
		
		/**
		 *设置事件 
		 */		
		private function setEvent():void
		{
//			DataFactory.Instance.dataReceive.messageReceiveData.addEventListener(MessageDataEvent.MESSAGE_SCENE, receiveMessageScene);//屏幕提示语
		}
		
		/**
		 * 显示屏幕提示语
		 */		
		private function receiveMessageScene(event:MessageEvent):void
		{
			if(!event.date || !event.date.message) return;
			sceneMessage(event.date.message);
		}
		
		/**
		 * 显示屏幕提示语 
		 * @param msg 要提示的信息
		 */		
		public function sceneMessage(msg:String):void
		{
		}
	}
}